<template>
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="企业详细信息" name="first">
        
        <Messageform :companyCode="companyCode"/>
    
    </el-tab-pane>
    <el-tab-pane label="高管信息" name="second">
        
        <Toppeople :companyCode="companyCode"/>
    
    </el-tab-pane>
    
  </el-tabs>
</template>
<script>

import Messageform from '@/components/Messageform.vue'
import Toppeople from '@/components/Toppeople.vue'

  export default {
    name: 'Home',
    components: {
    Messageform,
    Toppeople
  }, 
  
    data() {
      return {
        activeName: 'second',
        companyCode:this.$route.query.companyCode
      };
    },

    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  };
</script>